package com.amado.rmi.rmi.service;

import com.amado.rmi.sevice.RuleService;
import com.amado.rmi.vo.Rule;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.Arrays;
import java.util.List;

/**
 * Created by Administrator on 2018/12/12.
 */
public class RuleServiceImpl extends UnicastRemoteObject implements RuleService{
    public RuleServiceImpl() throws RemoteException {
    }

    public Rule getRule(String ruleNo) {
        return new Rule(1L,"DIAG_1001");
    }

    public List<Rule> list() {
        return Arrays.asList(new Rule(1L,"DIAG_1001"),new Rule(2L,"DIAG_1002"));
    }
}
